package training;

public class Employee extends Person{
    private double salary;

    public Employee() {
    }

    public Employee(String name, int age, int height,double salary) {
        super(name, age, height);
        this.salary = salary;
    }

    public void work(){
        System.out.println("工作");
    }

    @Override
    public String toString() {
        return "Employee{" +
                "salary=" + salary +
                '}';
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }
}
